<include file="Public:header" />
<div class="main">
<div class="position"><p>您的当前位置：<a href="/">首页</a>  >  <a href="{:U('Ask/index')}">问答</a>
    <volist name='cate_nav' id='vo'>
        > <a title="{$vo.name}" href="{:U('Ask/lists',array('alias'=>$vo['alias']))}">{$vo.name}</a>
    </volist>
</p></div>
<div class="m_t_15 overflow_h">
<div class="body_left">
<div class="ask_list_t">
    <div class="search_criteria_top ">
        <ul>
            <volist name='cate_list' id='vo'>
                <li><a href="{:U('Ask/lists',array('alias'=>$vo['alias']))}" <php>if($pid==$vo['id']){</php>class="selected"<php>}</php> >{$vo.name}</a></li>
            </volist>
        </ul>
    </div>
    <div class="ask_list_t01 overflow_h">
        <ul>
            <volist name='cate_ids' id='vo'>
                <li><a href="{:U('Ask/lists',array('alias'=>$vo['alias']))}" <php>if($cate['id']==$vo['id']){</php>class="selected"<php>}</php> >{$vo.name}</a></li>
            </volist>
        </ul>
    </div>
</div>

<div class="ask_list_t">
    <div class="body_title"><ul>
        <li><a href="{:U('Ask/lists',array('alias'=>$cate['alias']))}" <php>if(!$solve){</php> class="selected" <php>}</php> >全部问题</a></li>
        <li><a href="{:U('Ask/lists',array('alias'=>$cate['alias'],'solve'=>2))}" <php>if($solve==2){</php> class="selected" <php>}</php> >已解决</a></li>
        <li><a href="{:U('Ask/lists',array('alias'=>$cate['alias'],'solve'=>1))}" <php>if($solve==1){</php> class="selected" <php>}</php> >待解决</a></li>
    </ul>
        <span class="body_title_r"><a href="{:U('Ask/add')}" class="but25">我要提问</a></span></div>
    <div class="ask_list_t02">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <th width="68%" align="left">标题</th>
                <th width="8%">回答</th>
                <th width="10%">状态</th>
                <th width="14%">更新时间</th>
            </tr>
            <volist name="page_arr['list']" id='vo'>
            <tr>
                <td><a title="{$vo.title}" href="{:U('Ask/detail',array('id'=>$vo['id']))}"><span class="org02">[{$cate_for[$vo['cate_id']]}]</span>{$vo.title}</a></td>
                <td align="center">{$vo.answer}</td>
                <td>
                    <span <php>if($vo['solve_status']==2){</php>class="but33"<php>}else{</php>class="but34"<php>}</php> >{$solve_status[$vo['solve_status']]}</span>
                </td>
                <td align="center">
                    <php>
                        if($vo['update_date']){
                    </php>
                    {$vo.update_date|date='Y-m-d H:i',###}
                    <php>}else{</php>
                    {$vo.add_time|date='Y-m-d H:i',###}
                    <php>}</php>
                </td>
            </tr>
            </volist>
        </table>
    </div>
    <div class="plastic_bottom_pages">{$page_arr.page}</div>
</div>
</div>
<div class="body_right">
    <div class="ask_list_r01">
        <p><input name="textfield2" type="text" class="inp07" id="askTitle" value="请输入标题" /></p>
        <p><textarea name="textfield3" class="inp08" id="askInfo">请在这输入问题详细内容描述</textarea></p>
        <p class="overflow_h"><span class="adl_list_sp1">
  <select class="select03" name="select" id="askCateId">
      <option value="0">--请选择分类--</option>
      <volist name='ask_cate' id='val'>
          <option value="{$val.id}">{$val.html}{$val.name}</option>
      </volist>
  </select>
</span><span class="adl_list_sp2"><a  href="javascript:;" id="askBut" class="but35">提交问题</a></span></p>
    </div>
    <div class="ask_list_r02">{:getOneAd(1,300,170)}</div>
    <div class="ask_list_r03">
        <h1 class="n_h_title02">
            <ul>
                <li><a href="javascript:;" data-did="new" class="selected">最新问答</a></li>
                <li><a href="javascript:;" data-did="hits" >热门问答</a></li>
            </ul><!--span class="more"><a href="#">更多</a></span-->
        </h1>
        <ul class="ul_ask" id="new">
            <volist name='ask_new' id='vo'>
                <li><a title="{$vo.title}" href="{:U('Ask/detail',array('id'=>$vo['id']))}">· {$vo.title}</a></li>
            </volist>
        </ul>
        <ul class="ul_ask" id="hits">
            <volist name='ask_hits' id='vo'>
                <li><a title="{$vo.title}" href="{:U('Ask/detail',array('id'=>$vo['id']))}">· {$vo.title}</a></li>
            </volist>
        </ul>
    </div>
</div>
</div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $("#askTitle").fangCmsText();
    $("#askInfo").fangCmsText();
    $("#askBut").click(function(){
        var url = "{:U('Ajax/addAsk')}";
        ask_add(url);
    });
    $(".n_h_title02 ul li a").click(function(){
        var did = $(this).attr('data-did');
        $(".n_h_title02 ul li a").removeClass("selected");
        $(this).addClass("selected");
        $("#new,#hits").hide();
        $("#"+did).show();
    })
</script>
<include file="Public:footer" />